/*
 * PlantView.h
 *
 *  Created on: 31/05/2014
 *      Author: javier
 */

#ifndef PLANTVIEW_H_
#define PLANTVIEW_H_

#include "Drawable.h"
#include "Utils.h"

class PlantView: public Drawable {
public:
	PlantView(SDLWindow* window, SDL_Texture* texture, Positionable* object);
	void render(Camera& cam);
	void update();
	virtual ~PlantView();
private:
	SDL_Rect clips[8];
	int useClip;
	SDLWindow* window;
	SDL_Texture* texture;
	int base;
	std::pair<double, double> geometry;
	Positionable* object;
	Cycler cycler;
	Properties properties;
};

#endif /* PLANTVIEW_H_ */
